const initiaState:any[] = []

export default (state:any=initiaState,action:{type:string,[k:string]:any})=>{
    let {type,payload} = action
    switch(type){
        case 'AMEND':
            return payload;
        case 'AFTER':
            return payload;
        case 'SHOW':
            return payload;
        case 'IMAGE':
            return payload;
        default :
            return [...state]
    }
}